﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="bmi.aspx.vb" Inherits="week2.bmi" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    Put your weight here <asp:TextBox ID="TB_weight" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator1" runat="server" 
        ControlToValidate="TB_weight" ErrorMessage="Must be a lot less than 200" 
        MaximumValue="200" MinimumValue="0" Type="Double"></asp:RangeValidator>
    <br /><br />
    Put your height here <asp:TextBox ID="TB_height" runat="server"></asp:TextBox>
    <asp:RangeValidator ID="RangeValidator2" runat="server" 
        ControlToValidate="TB_height" ErrorMessage="Must be a lot less less than 3" 
        MaximumValue="3" MinimumValue="0" Type="Double"></asp:RangeValidator>
    <br /><br />
    <asp:Button ID="Button1" runat="server" Text="Calculate BMI" /><br /><br />
    <asp:Label ID="lbl_result" runat="server" Text="Label"></asp:Label>
</asp:Content>
